<?php

?>

<div class="<?php print $classes; ?>"<?php print $attributes; ?>>
  <?php if (!$label_hidden): ?>
    <div class="field-label"<?php print $title_attributes; ?>><?php print $label ?>:&nbsp;</div>
  <?php endif; ?>
  <div class="field-items"<?php print $content_attributes; ?>>
    <?php foreach ($items as $delta => $item): ?>
      <div class="field-item field-item-<?php print $delta + 1?> <?php print $delta % 2 ? 'odd' : 'even'; ?>"<?php print $item_attributes[$delta]; ?>><?php print render($item); ?>
        <?php 
	      if (!empty($item['#item']['title'])) {
		    $caption = '<div class="image_caption">' .$item['#item']['title'] . '</div>';
		    print $caption;
		  }
	    ?>
	  </div>
	
	<?php endforeach; ?>
  </div>
</div>
